/*!
 * 全局配置 
 */
layui.define(['laytpl', 'layer', 'element', 'util'], function (exports) {
    exports('setter', {
        container: 'LAY_app',
        baseUrl: "", //  http://localhost:5258   /TManager
        version: (typeof myLop === 'undefined') ? Date.now() : myLop.version,
        base: layui.cache.base //记录静态资源所在路径
        ,
        views: layui.cache.base + 'tpl/' //动态模板所在目录
        ,
        entry: 'index' //默认视图文件名
        ,
        engine: '.html' //视图文件后缀名
        ,
        pageTabs: true //是否开启页面选项卡功能。iframe版推荐开启

        ,
        name: 'layuiAdmin',
        tableName: 'XinLife' //本地存储表名
        ,
        MOD_NAME: 'admin' //模块事件名

        ,
        debug: true //是否开启调试模式。如开启，接口异常时会抛出异常 URL 等信息

        //自定义请求字段
        ,
        request: {
            tokenName: 'Authorization'
        }

        //自定义响应字段
        ,
        response: {
            statusName: 'code' //数据状态的字段名称
            ,
            statusCode: {
                ok: 200 //数据状态一切正常的状态码
                ,
                logout: 1001 //登录状态失效的状态码
            },
            msgName: 'msg' //状态信息的字段名称
            ,
            dataName: 'data' //数据详情的字段名称
        }

        //扩展的模块（相对于 lib/extend 目录）
        ,
        extend: {
            wizard: 'wizard',
            echarts: 'echarts', //第三方 echarts 核心包
            echartsTheme: 'echartsTheme', //第三方 echarts 主题
            layim: 'layim/layim' //layim
        }

        //主题配置
        ,
        theme: {
            //内置主题配色方案
            color: [{
                main: '#20222A' //主题色
                ,
                selected: '#009688' //选中色
                ,
                alias: 'default' //默认别名
            }, {
                main: '#03152A',
                selected: '#3B91FF',
                alias: 'dark-blue' //藏蓝
            }, {
                main: '#2E241B',
                selected: '#A48566',
                alias: 'coffee' //咖啡
            }, {
                main: '#50314F',
                selected: '#7A4D7B',
                alias: 'purple-red' //紫红
            }, {
                main: '#344058',
                logo: '#1E9FFF',
                selected: '#1E9FFF',
                alias: 'ocean' //海洋
            }, {
                main: '#3A3D49',
                logo: '#2F9688',
                selected: '#5FB878',
                alias: 'green' //墨绿
            }, {
                main: '#20222A',
                logo: '#F78400',
                selected: '#F78400',
                alias: 'red' //橙色
            }, {
                main: '#28333E',
                logo: '#AA3130',
                selected: '#AA3130',
                alias: 'fashion-red' //时尚红
            }, {
                main: '#24262F',
                logo: '#3A3D49',
                selected: '#009688',
                alias: 'classic-black' //经典黑
            }, {
                logo: '#226A62',
                header: '#2F9688',
                alias: 'green-header' //墨绿头
            }, {
                main: '#344058',
                logo: '#0085E8',
                selected: '#1E9FFF',
                header: '#1E9FFF',
                alias: 'ocean-header' //海洋头
            }, {
                header: '#393D49',
                alias: 'classic-black-header' //经典黑头
            }, {
                main: '#50314F',
                logo: '#50314F',
                selected: '#7A4D7B',
                header: '#50314F',
                alias: 'purple-red-header' //紫红头
            }, {
                main: '#28333E',
                logo: '#28333E',
                selected: '#AA3130',
                header: '#AA3130',
                alias: 'fashion-red-header' //时尚红头
            }, {
                main: '#28333E',
                logo: '#009688',
                selected: '#009688',
                header: '#009688',
                index: 14,
                alias: 'green-header' //墨绿头
            }, {
                main: '#393D49',
                logo: '#393D49',
                selected: '#009688',
                header: '#23262E',
                index: 15,
                alias: 'Classic-style1' //经典风格1
            }, {
                main: '#001529',
                logo: '#001529',
                selected: '#1890FF',
                header: '#1890FF',
                index: 16,
                alias: 'Classic-style2' //经典风格2
            }, {
                main: '#25282A',
                logo: '#25282A',
                selected: '#35BDB2',
                header: '#35BDB2',
                index: 17,
                alias: 'Classic-style3' //经典风格3
            }, {
                main: 'white',
                selected: '#1AA094',
                index:18,
                alias: 'Classic-white' //白色
            }]

            //初始的颜色索引，对应上面的配色方案数组索引
            //如果本地已经有主题色记录，则以本地记录为优先，除非请求本地数据（localStorage）
            ,
            initColorIndex: 14
        }
    });
});